<?php defined('SYSPATH') or die('No direct script access.');
 
class User_negocio_Model extends Model {

	/**
	 * Verifica se o username ja existe.
	 * @return boolean
	 */
	public function checarUsernameRepetido($username){
		$usr = ORM::factory('user')
					->where('username', $username)
					->find();
		if($usr->loaded){
			return true;
		}else{
			return false;
		}
	}
}